export const ErrorCodeEnum = {
  webRTCError: 1000,
  micPermission: 1001,
  websocketInitFailed: 1002,
  loginError: 1003,
  websocketError: 1004,
  answerFailed: 1005,
  noCallOutPermission: 1006,
};

export const ErrorCodeMap = {
  [ErrorCodeEnum.webRTCError]: 'WebRTC 异常',
  [ErrorCodeEnum.micPermission]: '麦克风权限异常',
  [ErrorCodeEnum.websocketInitFailed]: 'WebSocket 初始化失败',
  [ErrorCodeEnum.loginError]: '登录异常',
  [ErrorCodeEnum.websocketError]: 'WebSocket 异常',
  [ErrorCodeEnum.answerFailed]: 'answerfailed',
  [ErrorCodeEnum.noCallOutPermission]: '无外呼权限',
};
